package com.examplehub.basics;

public class ConvertStringToInteger {
  public static void main(String[] args) {
    String str = "123";
    int number = Integer.parseInt(str);
    System.out.println(number); /* 123 */
  }
}
